package beans.factory.support;

import beans.BeansException;
import core.io.Resource;
import core.io.ResourceLoader;

public interface BeanDefinitionReader {

    /**
     * @Author: Take-off
     * @Description: //TODO 获取注册表信息
     * @Date: 4:56 PM 2023/2/11
     * @Param: []
     * @return: beans.factory.support.BeanDefinitionRegistry
     **/
    BeanDefinitionRegistry getRegistry();

    ResourceLoader getResourceLoader();

    //下面是加载对象定义的方法--方法重载
    void loadBeanDefinitions(Resource resource) throws BeansException;

    void loadBeanDefinitions(Resource... resources) throws BeansException;

    void loadBeanDefinitions(String location) throws BeansException;
}
